﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{     
    enum NPCType
        { 
            task,
            shop,
            iron
        }
    abstract class NPC
        {
        
        private string name;
        private NPCType npc;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public NPCType Npc
        {
            get { return this.npc; }
            set { this.npc = value; }
        }
   
        public NPC(string name,NPCType type)
        {
            this.name = name;
            this.npc = npc;
        }
        public abstract void Speak();
    }
}
